<?php if(isset($payaccountinfos) and $payaccountinfos){
    foreach($payaccountinfos as $payaccountinfo){
        ?>
        <option value="<?php echo isset($payaccountinfo['payaccountinfo_id'])?$payaccountinfo['payaccountinfo_id']:0 ?>">
            <b><?php if(isset($coins[$payaccountinfo['coinid']])){echo $coins[$payaccountinfo['coinid']].":";}?></b>
            <?php
            $flag = isset($coins[$payaccountinfo['coinid']]) && $coins[$payaccountinfo['coinid']] ==1;

            $str1 = "开户银行:";
            if($flag){
                $str2 = "户名:";
                $str3 = "帐号:";
            }else{
                $str2 = "受款人名称:";
                $str3 = "受款人账户:";
            }
            $echo = '';
            $echo .= isset($payaccountinfo['bankname'])?($str1.$payaccountinfo['bankname']):'';
            $echo .= isset($payaccountinfo['bankaddress'])&&$payaccountinfo['bankaddress']?$payaccountinfo['bankname']:'';
            $echo .= isset($payaccountinfo['bankaccountname'])?($str2.$payaccountinfo['bankaccountname']):'';
            $echo .= isset($payaccountinfo['bankaccount'])?($str3.$payaccountinfo['bankaccount']):'';
            $echo .= isset($payaccountinfo['bankswift'])&&$payaccountinfo['bankswift']?(" SWIFT:".$payaccountinfo['bankswift']):'';

            echo $echo ?>
        </option>
    <?php }
} ?>
